import time

def test_model_inference_time(model, large_input):
    start = time.time()
    model.predict(large_input)
    duration = time.time() - start
    assert duration < 0.1  # 要求在100ms内完成